package cn.wolfcode.qo;

import cn.wolfcode.util.UtilContext;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
@ToString
public class NoticeQueryObject extends QueryObject{
    /** 创建时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    /** 创建时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    /** 公告级别*/
    private Integer level;
    /** 已读未读状态*/
    private Boolean read;

    //获得当前员工的id
    private Long eid= UtilContext.getCurrentUser().getId();

    //获得当前的用户是否为超级管理员
    private Boolean admin = UtilContext.getCurrentUser().isAdmin();

}
